###################################
#
# Waverider Systems
# http://www.WaveriderSystems.com
#
# WorldPay Select Junior support program 
# Version 1.0
#
# Copyright (c) 1999, 2000, 2001 by Paul Southcott, All rights reserved
# 
# This code may not be copied, borrowed, stolen, sold, resold, reused, 
# recycled, plagiarized, modified, or in any way used for anything at
# all without the express written permission of the author.
#

World Pay Select Junior Integration
===================================

Worldpay offers online secure payments. If using WorldPay you DO NOT need a secure server as all credit card details are handled by WorldPay.

Credit card details are NOT entered on PerlShop.

In ps.cfg you will need to set the following -

$online_credit_verify   = 'WorldPay';

####################################################
# WorldPay account information

# Set this to your WorldPay account number.
$worldPay_id  = 'xxxxx';

# WorldPay access URL.  Do not alter.
$worldPay_url = 'https://select.worldpay.com/wcc/purchase';

# WorldPay transaction mode.
# Set this value to '100' to enable Test Mode with all transactions accepted.
# Set this value to '101' to enable Test Mode with all transactions declined.
# Set this value to '0' to enable live transaction processing.
$worldPay_mode = '100' ;

-----------------------------------------------------------------------------

There is a script file called ps_worldpay.cgi which should be put in the same directory as your perlshop scripts.  This file should be given the same file permissions as the perlshop.cgi file.

You need to cofigure WorldPay to come back to this script file. Log On to the WorldPay adminstration site (WorldPay will provide you with the details). Set the WorldPay callback URL to where ever your script file is.

Example:
http://www.yourstore.com/cgi-bin/ps_worldpay.cgi

Make sure 'Callback Enabled?' and 'Use callback response?' are ticked.

-----------------------------------------------------------------------------

Also included in this package is a test html file called worldpay.html that allows you to allow you to check the call to WorldPay.

You need to alter your copy of the worldpay.html file to use your own WorldPay ID, and to set the test mode value to 100 or 101.

With this you will returned to the ps_worldpay.cgi script - do not select continue shopping as this will try and take you to perlshop - but you can view the source at this stage to see what response you got from WorldPay.


